![]() | ![]() | ![]() | ![]() | ![]() |
Error messages like the following might be generated when the SCHEMA= option is used in a LIBNAME statement to create a Teradata table from PROC DS2:
ERROR: Base table or view not found Object 'DUMMY2' does not exist. ERROR: Unable to add rows to table. ERROR: General error
To circumvent the problem, use the DATABASE= option instead of SCHEMA= option in the LIBNAME statement.
The sample code on the Full Code tab illustrates the problem.
Be aware that while the DATABASE= and SCHEMA= options are related, they do function differently. The DATABASE= option issues a DATABASE command, potentially altering the default database for your connection. In contrast, the SCHEMA= option alters the SQL that is submitted, prefacing table names with the SCHEMA= value. Therefore, SAS issues the following without the SCHEMA= option:
SELECT * FROM TAB
With SCHEMA=OTHERDB specified, SAS issues the following:
SELECT * FROM OTHERDB.TAB"
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | Base SAS | Microsoft Windows 8.1 Pro x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 |
Microsoft Windows 10 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 R2 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 for x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Std | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Windows 7 Enterprise x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Windows 7 Professional x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
64-bit Enabled AIX | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
64-bit Enabled Solaris | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
HP-UX IPF | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Linux for x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Solaris for x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft® Windows® for x64 | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
z/OS 64-bit | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 | ||
z/OS | 9.4 | 9.4 | 9.4 TS1M0 | 9.4 TS1M3 |